<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<?php
class CParam
{
//返回应用程序名
function GetApp()
{
  $a = "phppsa";
  return $a;
} 
//与应用程序名相关的URL
function GetURL()
{
  $u = "http://127.0.0.1/www/php/login.php";
  return $u;
}
//获取access数据库的物理路径
function GetAccessPath()
{ 
  $p="G:\HttpServer\www\www\php\psa.mdb";
  return $p;
}
//产生随机数
function randomkeys($length)
{
	$pattern = "1234567890ABCDEFGHIJKLOMNOPQRSTUVWXYZ";
	for($i=0;$i<$length;$i++)
	{
		$key .= $pattern{mt_rand(0,35)};    //生成php随机数
	}
	return $key;
}
}
?>
</body>
</html>
